package com.bjsxt;

import lombok.AllArgsConstructor;
import lombok.Setter;

/**
 * 	负责和具体的策略类交互; 分离具体的算法和调用客户端
 * 
 * @author melo
 *
 */
@AllArgsConstructor
@Setter
public class Context {

	private Strategy strategy;

	public void printPrice(double price) {
		System.out.println(strategy.getPrice(price));
	}

}
